﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using hessiancsharp.client;
using HessianService;

namespace TestClient
{
    public partial class Test : System.Web.UI.Page
    {
        //internal  HessianService.IService PassportService
        //{
        //    get { return ServiceLocator.GetService<HessianService.IService>(); }
        //}
        protected void Page_Load(object sender, EventArgs e)
        {
            CHessianProxyFactory factory = new CHessianProxyFactory();
            string url = "http://testservice.5173esb.com/mail.hessian";
            IService test = (IService)factory.Create(typeof(IService), url); //创建一个服务代理
            try
            {
                string st =
                    test.Hello(
                        "8zcyJ/MiURH5uZQJbj1KSFS9QDNe1KDTC3WVlGea1/iRjFOMRSbHBBxMSa77APAGUlIPLP0KBtZsv5tSmWEeOin26Zu1Tc/gvXMMfsZ5kJCdQtKYe7L6VwIUyfJyAc3TlzS7sy4yxDJuhfV70Fc7gIRr0E4st1N0GQdfWgqfGCqB8GU67LbmhS5PhXMCc+GfxoCwp+JIyeC0mpp5QQ5lpDlJz2WM5Q+5k1g6TmHjoaBz4q1MtLXc4jsbaIpMUwUePO4aq7+misyNgIt3SQjuEc926uMElDNC6CTiIg8OC296QvpQGKXbqnH/fb/UfGaatdchqZjpIGiCA+eBko0kzXEQGV+rv/dGiXqg5aJaVVeRUU0HgPasU/B0p5U7SiUto6eJG5gn/J1liXm/L98yZq88y+38KkfaMz/hvfx2hv/3s6xBXwnCIzTRHDBqrKHkC1MwS+DgMXbYi1Z7lLSo828ZMkIFpVEVr5Eyle0x3C5/hjGak9z9cbvIzJZwTwQ9WbzztSPGiIpcOp/zyBTXFRwIy27GKR/SenZrb2TdiRDZWW/LMuEOx+VeHyZuHkNpb7W57KHaYxETgc0qKD4GDw");

                Response.Write(st);
            }
            catch (Exception ex)
            {

                Response.Write(ex.ToString());
                Response.Write(this.Request.RawUrl);
            }


        }
    }
}